import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import router from "./router";
import store from "./store";
import http from "axios";
import "./api/mock";
import echarts from "echarts";
Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$http = http;
Vue.prototype.$echarts = echarts;

new Vue({
  store,
  router,
  render: (h) => h(App),
  created() {
    store.commit("tab/addMenu", router);
  },
}).$mount("#app");
